<template>
    <div>
        <div class="top">
            <div class="zi">{{ headerText }}</div>
        </div>
    </div>
</template>

<script>
export default {
    props: {
        headerText: {
            type: String,
            required: true
        }
    }
}
</script>

<style lang="scss" scoped>
* {
    margin: 0;
    padding: 0;
}

body,
html,
#root {
    margin: 0;
    padding: 0;
}

.top {
    width: 100%;
    height: 50px;
    background-color: rgb(144, 82, 237);
    color: white;
    font-size: 26px;
    padding-top: 15px;
    box-sizing: border-box;
    padding-left: 10px;
    display: flex;
    z-index: 999;

    .zi {
        font-size: 18px;
        margin: 0 auto;
        width: 100%;
        position: fixed;
        text-align: center;
    }
}
</style>